<template>
	<view>
		<!-- 未登录页面 -->
		<my-login v-if="!token"></my-login>
		<!-- 登陆后显示 -->
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import badgeMix from '@/mixins/tabbar-badge.js'
	import {
		mapState
	} from 'vuex'
	export default {

		mixins: [badgeMix],
		data() {
			return {

			};
		},
		computed: {
			...mapState('my_user', ['token'])
		}
	}
</script>

<style lang="scss">

</style>